<?php

namespace App\Transformers;

use App\Models\Category;
use App\Models\Link;
use App\Models\Reply;
use League\Fractal\TransformerAbstract;
use Spatie\Permission\Models\Permission;

class LinkTransformer extends TransformerAbstract
{

    public function transform(Link $link)
    {
        return [
            'id' => $link->id,
            'title' => $link->title,
            'link' => $link->link,
        ];
    }

}
